package com.newcapec.shiro.service;


import com.newcapec.shiro.entity.Roles;

import java.util.List;
import java.util.Map;

public interface RolesService {

    void add(Roles entity);

    void edit(Roles entity);

    void remove(Integer id);

    void removeBatch(Integer[] id);

    Roles findById(Integer id);

    Map<String, Object> find(Integer pageNum, Integer pageSize, Roles entity);

    List<Roles> findAll();

    List<Roles> findByUserId(Integer userId);
}
